package cn.home.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.home.service.mapper.HomePerformanceDoctorMapper;
import cn.home.service.domain.HomePerformanceDoctor;
import cn.home.service.service.IHomePerformanceDoctorService;

/**
 * 医生业绩目标Service业务层处理
 * 
 * @author xsc
 * @date 2025-04-09
 */
@Service
public class HomePerformanceDoctorServiceImpl implements IHomePerformanceDoctorService 
{
    @Autowired
    private HomePerformanceDoctorMapper homePerformanceDoctorMapper;

    /**
     * 查询医生业绩目标
     * 
     * @param id 医生业绩目标主键
     * @return 医生业绩目标
     */
    @Override
    public HomePerformanceDoctor selectHomePerformanceDoctorById(Long id)
    {
        return homePerformanceDoctorMapper.selectHomePerformanceDoctorById(id);
    }

    /**
     * 查询医生业绩目标列表
     * 
     * @param homePerformanceDoctor 医生业绩目标
     * @return 医生业绩目标
     */
    @Override
    public List<HomePerformanceDoctor> selectHomePerformanceDoctorList(HomePerformanceDoctor homePerformanceDoctor)
    {
        return homePerformanceDoctorMapper.selectHomePerformanceDoctorList(homePerformanceDoctor);
    }

    /**
     * 新增医生业绩目标
     * 
     * @param homePerformanceDoctor 医生业绩目标
     * @return 结果
     */
    @Override
    public int insertHomePerformanceDoctor(HomePerformanceDoctor homePerformanceDoctor)
    {
        return homePerformanceDoctorMapper.insertHomePerformanceDoctor(homePerformanceDoctor);
    }

    /**
     * 修改医生业绩目标
     * 
     * @param homePerformanceDoctor 医生业绩目标
     * @return 结果
     */
    @Override
    public int updateHomePerformanceDoctor(HomePerformanceDoctor homePerformanceDoctor)
    {
        return homePerformanceDoctorMapper.updateHomePerformanceDoctor(homePerformanceDoctor);
    }

    /**
     * 批量删除医生业绩目标
     * 
     * @param ids 需要删除的医生业绩目标主键
     * @return 结果
     */
    @Override
    public int deleteHomePerformanceDoctorByIds(Long[] ids)
    {
        return homePerformanceDoctorMapper.deleteHomePerformanceDoctorByIds(ids);
    }

    /**
     * 删除医生业绩目标信息
     * 
     * @param id 医生业绩目标主键
     * @return 结果
     */
    @Override
    public int deleteHomePerformanceDoctorById(Long id)
    {
        return homePerformanceDoctorMapper.deleteHomePerformanceDoctorById(id);
    }
}
